/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

var LayoutFrameController = new Class({
    
    frames: new Array(),
    pointer: 0,
    
    addFrame: function(frame){
        this.frames[this.frames.length] = frame;
    },
    
    getFirstFrame: function(){
        return this.frames[0];
    },
    
    getCurrentFrame: function(){
        console.log(this.frames[this.pointer]);
        return this.frames[this.pointer];
    },
    
    shift: function(){
      this.pointer = ++this.pointer%this.frames.length;  
    },
    
    countFrames: function(){
        return this.frames.length;
    }
    
});


